using System;
using System.Collections.Generic;
using System.Text;
using Objects;
using DAL;

namespace BAL
{
    public class BALChuDe
    {
        BALChuDe _dal;
        public BALChuDe()
        {
            _dal = new BALChuDe();
        }

        public static int Insert_ChuDe(String TenChuDe,String DuongDan,String GhiChu ,int SapXep)
        {
            DALChuDe _dal = new DALChuDe();
            return _dal.Insert_ChuDe(TenChuDe, DuongDan,GhiChu, SapXep);
        }

        public static int Update_ChuDe(int id, String TenChuDe, String DuongDan, String GhiChu ,int status, int SapXep)
        {
            DALChuDe _dal = new DALChuDe();
            return _dal.Update_ChuDe(id, TenChuDe, DuongDan,GhiChu, status, SapXep);
        }

        public static int Delete_ChuDe(int id)
        {
            DALChuDe _dal = new DALChuDe();
            return _dal.Delete_ChuDe(id);
        }

        public static List<ChuDe> GetAllItem()
        {
            DALChuDe _dal = new DALChuDe();
            return _dal.GetAllItem();
        }

        public static List<ChuDe> GetByIdMauThe(int IdMauThe)
        {
            DALChuDe _dal = new DALChuDe();
            return _dal.GetByIdMauThe(IdMauThe);
        }

        public static ChuDe GetByIdChuDe(int IDChuDe)
        {
            DALChuDe _dal = new DALChuDe();
            return _dal.GetByIdChuDe(IDChuDe);
        }
    }
}
